import request from '@/utils/request'
const prefix = "/api/integral"

/**
 *  积分列表
 */
export function integralList (params) {
	return request({
		url: prefix + `/list`,
		method: 'get',
		params: params
	})
}

/**
 *  积分详情
 */
export function integralInfo (id) {
	return request({
		url: prefix + `/info/${id}`,
		method: 'get',
	})
}

/**
 *  发放积分
 */
export function postIntegral (data) {
	return request({
		url: prefix + `/post`,
		method: 'post',
		data
	})
}


/**
 *  复议
 */
export function postAfterIntegral (data) {
	return request({
		url: prefix + `/postAfter`,
		method: 'post',
		data
	})
}

